import {LAYOUT} from '@/router/constants';
import type {RouteRecordItem} from 'vc/src/router';

const ListedEsg: RouteRecordItem = {
  path: '/esg',
  component: LAYOUT,
  meta: {
    title: 'ESG专题',
    menuIndex: 1,
    subMenuIndex: 0
  },
  children: [
    {
      path: 'environment' + '/:type' + '/:code?',
      component: () => import('@/views/modules/esg/environment/index.vue'),
      meta: {
        title: 'A股环境绩效',
        hideSide: true
      }
    },
    {
      path: 'environmentHg' + '/:type' + '/:code?',
      component: () => import('@/views/modules/esg/environment/index.vue'),
      meta: {
        title: '港股环境绩效',
        hideSide: true
      }
    },
    {
      path: 'industry' + '/:type' + '/:code?',
      component: () => import('@/views/modules/esg/industry/index.vue'),
      meta: {
        title: 'A股行业环境绩效',
        hideSide: true
      }
    },
    {
      path: 'industryHg' + '/:type' + '/:code?',
      component: () => import('@/views/modules/esg/industry/index.vue'),
      meta: {
        title: '港股行业环境绩效',
        hideSide: true
      }
    },
    {
      path: 'social' + '/:type' + '/:code?',
      component: () => import('@/views/modules/esg/social/index.vue'),
      meta: {
        title: 'A股社会责任',
        hideSide: true
      }
    },
    {
      path: 'socialHg' + '/:type' + '/:code?',
      component: () => import('@/views/modules/esg/social/index.vue'),
      meta: {
        title: '港股社会责任',
        hideSide: true
      }
    },
    {
      path: 'governance' + '/:type' + '/:code?',
      component: () => import('@/views/modules/esg/governance/index.vue'),
      meta: {
        title: 'A股公司治理',
        hideSide: true
      }
    },
    {
      path: 'governanceHg' + '/:type' + '/:code?',
      component: () => import('@/views/modules/esg/governance/index.vue'),
      meta: {
        title: '港股公司治理',
        hideSide: true
      }
    },
  ]
};

export default ListedEsg;
